#pragma once
#include "common.h"
#include "CSocketClientManager.h"
using namespace std;

class CServerClientManager :public CSocketClientManager
{
protected:
	virtual bool GetSocketClientType(SOCKETDESOBJ& socketDesObj, PSOCKETOBJ pSocketObj, void* selectParam);
	virtual bool OnAcceptSocketClient(CSocketClient* pSocketClient, int type, int id);
	virtual void OnDiscardSocketClient(CSocketClient* pSocketClient, int type, int id);
public:
	CServerClientManager();
	bool OpenSocketClient(SOCKETDESOBJ& socketDesObj);
};

typedef struct ST_THREAD_SOCKETCONNECT_PARAM {
	SOCKETDESOBJ socketDesObj;
}THREAD_SOCKETCONNECT_PARAM, * PTHREAD_SOCKETCONNECT_PARAM;

